import {get, post, del, put} from "@/apis/http/request";
import {ExchangeBook} from "@/apis/model/exchange/ExchangeBookModel";

/**
* 得到列表
* @param params
*/
export const getExchangeBookList = (params: any) => get("/exchangeBook/list", params)

/**
* 得到分页列表
* @param params
*/
export const exchangeBookPage = (params: any) => post("/exchangeBook/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteExchangeBookById = (id: number) => del("/exchangeBook/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertExchangeBook = (param: ExchangeBook) => post("/exchangeBook", param)

/**
* 更新数据
* @param param
*/
export const updateExchangeBook = (param: ExchangeBook) => put("/exchangeBook", param)